// import { getPortPromise } from "portfinder";

// {
//     let s="彬道";

//     console.log(s.length);
//     for(let i of s){
//         console.log(i)
//     }
    
//     let num=1;
//     let num2="天下第一";
//     let str=`悟道${num}<p>${num2}</p>`;
//     console.log(str)
// }
// {
//     let str="彬天下第一,九阳神功,乾坤大挪移";

//     let newStr=Array.of(str);
//     console.log(newStr);
//     console.log(newStr.includes("九阳神功"))
// }

// export const add=(x,y) => x+y; 

// export const time=() => { 
// }

export let getTime=() => {
     let newTime=new Date();
     let getYear=newTime.getFullYear();
     let getMonth=newTime.getMonth()+1;
     let getDate=newTime.getDay();
     let week=newTime.getDate();
     let getHourse=newTime.getHours();
     let getMinutes=newTime.getMinutes();
     let getSeconds=newTime.getSeconds();
     let timeS=document.querySelector(".time");
     let str1=`现在是${getYear}年${getMonth}月${getDate}日${week}${getHourse}时${getMinutes}分${getSeconds}`;
     var newDiv=document.createElement("div");  
     newDiv.className="time";
     newDiv.style.color="red";
     timeS.innerHTML=str1;
     timeS.style="color:red;font-size:30px;text-align:right"
    //  containeer.appendChild(newDiv);
    //   console.log(str1)
     setTimeout(getTime,1000)
     
}






